/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package model.cliente;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import model.heranca.Pessoa;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Temporal;
import  javax.persistence.TemporalType;
import javax.persistence.Table;
/**
 *
 * @author Marcos
 */
@Entity
@Table(name = "cliente", schema = "sistemavendas")
public class Cliente extends Pessoa implements Serializable{
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private int codigo;
    @Temporal(TemporalType.DATE)
    @Column(name = "data_cadastro", nullable = false)
    private Date dataCadastro;
    
}
